package com.atguigu.gulimall.product.feign;


import com.atguigu.common.to.SkuHasStockVo;
import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient("gulimall-ware")
public interface WareFeignService {

    /**
     * 1.设置为R<T>
     * 2.直接返回我们想要的数据：List<SkuES>
     * 3.自己封装返回数据
     */


    @PostMapping("/ware/waresku/hasstock")
     R getSkuHasStock(@RequestBody List<Long>skuIds);

}
